package entity

type DictionaryItem struct {
    Id          int64  `gorm:"column:id;primary_key" json:"id"`
    Code        string `gorm:"column:code;type:varchar(255);not null" json:"code"`
    Key         string `gorm:"column:key;type:varchar(255);not null" json:"key"`
    Value       string `gorm:"column:value;type:varchar(255);not null" json:"value"`
    Status      int    `gorm:"column:status;type:integer;not null" json:"status"`
    SortOrder   int    `gorm:"column:sort_order;type:integer;not null" json:"sort_order"`
    Description string `gorm:"column:description;type:varchar(255);not null" json:"description"`
    CreatedAt   int64  `gorm:"column:created_at;type:bigint;not null" json:"created_at"`
    UpdatedAt   int64  `gorm:"column:updated_at;type:bigint;not null" json:"updated_at"`
}

func (d *DictionaryItem) TableName() string {
    return "dictionary_item"
}
